﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
//动态数组的使用
using System.Collections;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //创建并初始化一个三维数组
        string[, ,] strs = new string[,,] { { { "李白","《静夜思》", "<br><br>" } }, { { "床前明日光，", "<br>", "疑是地上霜。<br>" } }, { { "举头望明月，", "<br>", "低头思故乡。" } } };
        foreach (string s in strs)				//使用foreach语句遍历三维数组
        {
            Response.Write(s);				//输出三位数组中的内容
        }
        //动态数组的使用
        ArrayList al = new ArrayList();
        al.Add("yuz");
        al.Add("yuzhen");
        al.Remove("yuz");
        al[0] = "余振";
       // al[al.IndexOf("yuzhen")] = "yuzhen1";
        foreach (object o in al)
        {
            Response.Write(Convert.ToString(o));
        }
    }
}
